/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package protocol;

import org.w3c.dom.Element;

/**
 *
 * @author radu
 */
public class MessagePauseRep extends Message{
        long idPoll;

    public MessagePauseRep(Element root) {
        //TODO : more testing
        idPoll = Integer.valueOf(root.getAttribute("id"));
    }

    public MessagePauseRep(long _idPoll) {
        idPoll = _idPoll;
    }

    @Override
    public String toString() {
        return "<paused id=\"" + idPoll + "\"></paused>\r\n";
    }

    @Override
    public Executor getServerExecutor() {
        return null;//new ExecutorConnect(this);
    }

    public long getIdPoll() {
        return idPoll;
    }
    
}
